Leadtools.Dicom.AddIn Namespace > ThreadSafeDictionary<TKey,TValue> Class > Add Method : Add(TKey,TValue) Method |
'Usage Dim instance As ThreadSafeDictionary(Of TKey,TValue) Dim key As TKey Dim value As TValue instance.Add(key, value)
Exception | Description |
---|---|
System.ArgumentNullException | key is null. |
System.ArgumentException | An element with the same key already exists in the IDictionary. |
System.NotSupportedException | The IDictionary is read-only. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2